
define(['ionic', 'utility'], function () {
    angular.module('U9Mobile.utility')
        .constant('AppConstants', {
            APP_NAME: 'U9',
            APP_VERSION: '2.5.2.0',
            APP_PUBTIME: '2015.12.15',
            CONFIG_FILE_NAME: 'config.txt',
            APP_CONFIG_FILES_NAME: 'app.json',
            DEBUG_CONFIG_FILE_URL: '../../FileStorage/config.txt',
            ADD_APP_IMAGE: {
                id: 'add',
                name:'添 加',
                imgquote: 'img/add.png',
                imgquote1: 'img/add1.png'
            },

            SPLASH_SCREEN_EXTRA_DELAY: 1000,
            PLATFORM_BACK_BUTTON_PRIORITY_VIEW: 110,
            PLATFORM_BACK_BUTTON_VIEW_FN: 120,
            EXIT_APP_CONFIRM_TIME: 2000,
            APP_NUM_PER_PAGE: 9,
            MAX_CALLER_NUM: 8,

            DEFAULT_ADDRESS: '139.217.3.133',
            DEFAULT_PORT: '90',
            HTTP_TIME_OUT: 5000,
            GET_COMPANY_URL: 'http://{address}:{port}/u9_gateway/api/v1/logininfo.aspx/enterprises',
            GET_ORG_URL: 'http://{address}:{port}/u9_gateway/api/v1/logininfo.aspx/organizations?user_code={account}&enterprise_id={company}',
            LOGIN_URL: 'http://{address}:{port}/u9_oauth/access_token',
            DOWNLOAD_APP_URL: 'http://{address}:{port}/apps/{appId}.zip',
            GET_ALL_APPS_URL: 'http://{address}:{port}/api/?method=getconfig',
            CHECK_LICENSE_URL: 'http://{address}:{port}/api/?method=checkLicense&appKey={appKey}&userCode={userCode}&businessId1={businessId1}&businessId2={businessId2}',
            CHECK_UPDATE_URL: 'http://{address}:{port}/api/?method=checkUpdate&os={os}',

            U9HUB_TOKEN: 'EnHwALMivM41ttpDjeBWYDULz9EcylnATKJvwkd8',
            NEWS_URL: 'http://m.u9hub.com/news?access_token={access_token}&isframe=1&inject=1',
            FEEDBACK_URL: 'http://m.u9hub.com/feedbacks/create?access_token={access_token}&isframe=1&inject=1',

            GET_DEPARTMENT_LIST_URL: 'http://upsocial.yonyou.com/openapi/department/getlist',
            GET_USER_LIST_URL: 'http://upsocial.yonyou.com/openapi/user/getlist',

            PROXY_SCRIPT_URL: 'http://{address}:{port}/svc_script/?n={svFullName}&p={portalUrl}',
            PROXY_SVC_URL: 'http://{address}:{port}/u9_gateway/RestServices/{svFullName}.svc',

            GET_USER_INFO_CMD: 'UFIDA.U9.ISV.MFGRestMultiCallSV.MultiCall.IGetJoinUserInfo',
            GET_DEPOPERATER_INFO_CMD: 'UFIDA.U9.ISV.MFGRestContactSV.Contact.IGetDepOperaterInfo',
            GET_PERSON_INFO_CMD: 'UFIDA.U9.ISV.MFGRestContactSV.Contact.IGetPersonInfo',
            QUERY_OPERATERS_CMD: 'UFIDA.U9.ISV.MFGRestContactSV.Contact.IQueryOperInfo',
            CREATE_CPNDERENCE_URL: 'http://{address}:{port}/api/?method=CreateConference&url=caller={caller}|phones={phones}|userId={userId}',

            EXIT_APP_CONFIRM_STR: '再按一次退出工作台'
        });
});